<template>
    <div>
        <input>
        <button @click="counter">Counter</button>
    </div>
</template>
<script>
    // throw e;

    export default {
        beforeCreate: function () {
            let start = new Date().getTime();

            // for (let i = 0; i < 2999999999; i++) {
            //
            // }

            let end = new Date().getTime();

            console.log(end - start);
        },
        inject: ['foo'],
        methods: {
            counter() {
                // console.dir(this);
                // console.dir(this.$root.message);
                // this.$root.test();
                console.dir(this.$parent.$parent == this.$root);
                console.dir(this.foo);

                this.$emit('test-event01');
            }
        }
    }
</script>
<style scoped>
</style>
